package com.ruoyi.question.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 分类（如历史，政治）对象 dt_category
 *
 * @author llc
 * @date 2025-01-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DtCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    private Long id;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    private String name;

    /**
     * 逻辑删除(0-未删除,1-已删除)
     */
    @Excel(name = "逻辑删除(0-未删除,1-已删除)")
    private Integer isDeleted;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
